package com.zd.lib.demo;
import com.zd.lib.http.response.BaseEntity;

import java.util.List;
import java.util.Map;

import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Retrofit  请求API
 */
public interface Api {

    String baseUrl = "http://develop.api.test.dabanma.com/";

    @POST("token/visitor")
    @FormUrlEncoded
    Observable<BaseEntity<List<ListEntity>>> visitor(@Field("device") String device, @Field("regId") String regId);
    @POST("token/visitor")
    @FormUrlEncoded
    Observable<BaseEntity<ListEntity>> visitor1(@Field("device") String device, @Field("regId") String regId);
}
